<?xml version="1.0" encoding="UTF-8" ?>
<%@ page import="java.util.Collection" %>
<%@ page import="org.swimv2.model.Richiestanuovaabilita" %>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Notifiche</title>
<link rel="stylesheet" type="text/css" href="scheletro.css">
</head>
<body>
<div id="container">
<table class="topHome">
	<tr>
		    <td id="logoHome">
	<a href="home.jsp">Swim v2</a>
	<br><br><b> A help with a click!</b>
	
	
		    </td>
			<td class="personal">
				<br>
				<b>Ciao: <a href="paginaAmministratore.jsp">${sessionScope.utente.nome}</a> </b>&nbsp;&nbsp;&nbsp;<a href="NotificheAbServlet"><b>Notifiche</b></a>&nbsp;&nbsp;<a href="messaggi.jsp"><b>Messaggi</b></a>&nbsp;&nbsp;<a href="GestioneAbServlet"><b>Modifica abilità</b></a>
				&nbsp;&nbsp;<div id="button"><a href="Logout" id="logout">Logout</a></div>

			</td>		
	</tr>
</table>

	<%
	@SuppressWarnings("unchecked")
	Collection <Richiestanuovaabilita> notificAb = (Collection <Richiestanuovaabilita>)request.getAttribute("notificAb");	
	%>

<br></br>

	<div id="form">
	<div id="titlePage"><h1>Notifiche</h1></div><br><br>
	<br><br><br><br>
		<fieldset>
			<legend>Richieste inserimento abilità:</legend>
			
			<% if(notificAb.size()==0) { %>
				<br><br>Non ci sono richieste!
				<%} %>
			<% if(notificAb.size()>0) {%>
			<ul>
				<% for(Richiestanuovaabilita a:notificAb) {%>
				<li>
				<%=a.getNome() %>
				<form action="AccettaAb" method="post" style="display:inline">
				<input type="hidden" name="ab" id="ab" value="<% out.print(a.getNome()); %>" />
				<input type="submit" name="submit" id="button" value="Accetta" />&nbsp;
				</form>
				
				<form action="RifiutaAb" method="post" style="display:inline">
				<input type="hidden" name="ab" id="ab" value="<% out.print(a.getNome()); %>" />
				<input type="submit" name="submit" id="button" value="Rifiuta" /></form>
				
				</li>
				
				<%} %>
			
			</ul>
			<%}%>
			</fieldset>


</div>
</div>
</body>
</html>